import pygame

class Tower(object):
    def __init__(self, node):
        self.node = node
        self.position = node.position
        self.range = 50
        
        self.target = None
    
    def update(self):
        if self.target and not self.target.active:
            self.target = None
        
        if self.target:
            self.target.health -= 3
